package routes

import (
	"toolsweb-admin/handlers"

	"github.com/gin-gonic/gin"
)

func RegisterToolCategoryRoutes(router *gin.Engine) {
	categoryGroup := router.Group("/api/admin/tool-categories")
	{
		categoryGroup.GET("", handlers.ListToolCategories)
		categoryGroup.POST("", handlers.CreateToolCategory)
		categoryGroup.PUT("/:id", handlers.UpdateToolCategory)
		categoryGroup.DELETE("/:id", handlers.DeleteToolCategory)
		categoryGroup.GET("/:id/tools", handlers.GetCategoryTools)
	}
}
